//
//  XDTempVc.swift
//  weibo
//
//  Created by lucy on 2016/10/22.
//  Copyright © 2016年 com.huashengHuaSheng. All rights reserved.
//

import UIKit

class XDTempVc: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        setupUI()
        
    }
    
    //MARK-视图
    private func setupUI(){
    
        view.backgroundColor = UIColor.white
        setupNav()

    }
    
    
    //MARK-导航视图
    private func setupNav(){
    
        navigationItem.rightBarButtonItem = UIBarButtonItem(setHighlightImgName: nil, title: "PUSH", target: self, action: #selector(pushClick))
        navigationItem.title = "是\(navigationController?.childViewControllers.count ?? 0)个控制器"

    
    }
    
    
    @objc private func pushClick(){
    
        let tempVc = XDTempVc()
        navigationController?.pushViewController(tempVc, animated: true)
    
    }
    

   
}
















